{{include template('public/header','admin')}}
<script type="text/javascript">
$(function(){
	//方法一;
	$(".validform").Validform({
            tiptype:2,
            showAllError:true,
            ajaxPost:true,
            callback:function(data){
                if(data.status=="y"){
                  parent.location.reload();
                }else {
                  setTimeout(function(){$.Hidemsg();},2000);
                }
            }
	});
})
</script>
</head>
<body>
    <div class="container">
        <div style="margin: 20px;">
            <form action="{{url($postUrl)}}" method="post" class="form-horizontal validform" id="cpform" name="cpform" role="form" autocomplete='off'  >
                <input type='hidden' name='id' value="{{$item['id']}}" />
                <input type='hidden' name='listorder' value="{{$item['listorder']}}" />
                <table class="table table-border ticky_table">
                    <tr>
                        <td class="w_100">{{L('menu_parentid')}}</td>
                        <td>
                            <select  name="parentid" size="1"  class='form-control'>
                                <option value="0">一级菜单</option>
                                {{$select_menus}}
                            </select>
                        </td>
                        <td><div class="Validform_checktip"></div></td>
                    </tr>
                    <tr>
                        <td class="w_100">{{L('menu_name')}}</td>
                        <td><input type="text" id="name" name='name' value="{{$item.name}}" maxlength="40" tabindex="2" class='form-control' datatype="s3-18" nullmsg="请输入{{L('menu_name')}}！" errormsg="{{L('menu_name')}}至少3个字符,最多18个字符！"/></td>
                        <td><div class="Validform_checktip"></div></td>
                    </tr>
                    <tr>
                        <td class="w_100">{{L('menu_m')}}</td>
                        <td><input type="text" id="m" name='m' value="{{$item.m}}" maxlength="20" tabindex="4" class='form-control' datatype="s3-18" nullmsg="请输入{{L('menu_m')}}！" errormsg="{{L('menu_m')}}至少3个字符,最多18个字符！"/></td>
                        <td><div class="Validform_checktip"></div></td>
                    </tr>
                    <tr>
                        <td class="w_100">{{L('menu_c')}}</td>
                        <td><input type="text" id="c" name='c' value="{{$item.c}}" maxlength="20" tabindex="5" class='form-control' datatype="s3-18" nullmsg="请输入{{L('menu_c')}}！" errormsg="{{L('menu_c')}}至少3个字符,最多18个字符！"/></td>
                         <td><div class="Validform_checktip"></div></td>
                    </tr>
                    <tr>
                        <td class="w_100">{{L('menu_a')}}</td>
                        <td><input type="text" id="a" name='a' value="{{$item.a}}" maxlength="30" tabindex="6" class='form-control' datatype="s3-18" nullmsg="请输入{{L('menu_a')}}！" errormsg="{{L('menu_a')}}至少3个字符,最多18个字符！"/></td>
                        <td><div class="Validform_checktip"></div></td>
                    </tr>
                    <tr>
                        <td class="w_100">{{L('menu_data')}}</td>
                        <td><input type="text" id="data" name='data' value="{{$item.data}}" maxlength="100" tabindex="7" class='form-control' /></td>
                         <td><div class="Validform_checktip"></div></td>
                    </tr>
                    <tr>
                        <td class="w_100">{{L('menu_icon')}}</td>
                        <td><input type="text" id="icon" name='icon' value="{{$item.icon}}" maxlength="100" tabindex="7" class='form-control' /></td>
                        <td><div class="Validform_checktip"></div></td>
                    </tr>
                    <tr>
                        <td class="w_100">{{L('menu_display')}}</td>
                        <td>
                            <input type="radio" name="display" value="1" {{if $item.display eq '1'}}checked{{/if}} >是
                            <input type="radio" name="display" value="0" {{if $item.display eq '0'}}checked{{/if}} >否
                        </td>
                         <td><div class="Validform_checktip"></div></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" class="btn btn-primary "/>
                        </td>
                         <td></td>
                    </tr>
                </table>
                </from>
        </div>
    </div>
</body>
</html>